<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>添加学生</title>
<script type="text/javascript" src="/SpringMvc01/res/tools/jquery/jquery.min.js"></script>
<script type="text/javascript">
function login(){
    var username = $("#username").val();
    var pwd = $("#pwd").val();
    if(username == "" || pwd == ""){
        return false;
    }

    $.ajax({
        type: "POST",
        url: "/SpringMvc01/login/doLogin",
        data: {"username":username, "pwd":pwd},
        dataType: "json",
        success: function(data){
        	if(data.code == 1){
        		alert("登录成功！");
        	}
        }
    });
}
</script>

</head>
<body>
--------------------------增加
<form action="/SpringMvc01/admin/doAddStudent" method="post">

	<input  type="text" name="name" value=""/>
	<input  type="text" name="age" value=""/>
<br>
	<input type="submit" value="提交"/>
</form>
--------------------------查询所有  +删除
<form action="/SpringMvc01/admin/doSelectAllStudent" method="post">
	<input type="submit" value="提交"/>
</form>
${message }
<c:forEach var="vo" items="${list }" varStatus="vs">
	<li>name:${vo.name}</li>
	<a href="/SpringMvc01/admin/delectStudent?id=${vo.id}">删除</a>			
</c:forEach>
<br>
--------------------------修改



</body>
</html>